Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-143460: Correct unlimited stack size skip for Emscripten #143765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
freakboy3742 merged 1 commit into python:main from freakboy3742:emscripten-fixes
Jan 13, 2026

Conversation

@freakboy3742
Copy link
Contributor

@freakboy3742 freakboy3742 commented Jan 13, 2026
edited by bedevere-app bot
Loading

#143606 added a test skip decorator for tests when an infinite stack size is configured. That test skip included a shortcut for WASI (which doesn't have a resource module), but missing Emscripten (which has the same limitation).

Copy link
Contributor Author

!buildbot emscripten

Copy link

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 43b53af 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F143765%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

if is_emscriptenoris_wasi or os.name == "nt":
return test

import resource
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option is to remove if is_wasi or os.name == "nt": and replace it with a more a generic:

Suggested change
importresource
try:
import resource
except ImportError:
return test

Copy link
Contributor Author

@freakboy3742 freakboy3742 Jan 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that approach, but I figured it would be better to be explicit about when resource is a required module so that you catch a case where resource fails to compile for some reason.

@freakboy3742 freakboy3742 merged commit 1857a40 into python:main Jan 13, 2026
55 checks passed
@freakboy3742 freakboy3742 deleted the emscripten-fixes branch January 13, 2026 22:03
Copy link

Thanks @freakboy3742 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 13, 2026
...thonGH-143765)
Modifies the test skip for unlimited stack size to add Emscripten to the
exclusion list.
(cherry picked from commit 1857a40)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Copy link

bedevere-app bot commented Jan 13, 2026

GH-143819 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jan 13, 2026
freakboy3742 added a commit that referenced this pull request Jan 13, 2026
...H-143765) (#143819)
Modifies the test skip for unlimited stack size to add Emscripten to the
exclusion list.
(cherry picked from commit 1857a40)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vstinner vstinner vstinner approved these changes

@hoodmane hoodmane Awaiting requested review from hoodmane

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /